/**
* File Name: event.c
* Auther: Jichang
* Environment: Fedora 7 server
*/
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include<event2/event.h>

int main(int argc, char *argv[])
{
	struct event_base *base = event_base_new();
	//const char **buf;
	const char *buf;

	//获取当前支持的多路I/O
/*
	buf = event_get_supported_methods();
	
	for(int i = 0; i < 10; i++) {
		printf("buf[i] = %s\n", buf[i]);
	}
*/
	buf = event_base_get_method(base);
	printf("%s\n", buf);
	return 0;
}

